import { createRouter, createWebHashHistory } from "vue-router";
import UserView from "../views/UserView.vue";
import GoodsView from "../views/GoodsView.vue";
import OrderView from "../views/OrderView.vue";

const routes = [
  {
    path: "/",
    name: "user",
    component: UserView,
  },
  {
    path: "/user",
    name: "user",
    component: UserView,
  },
  {
    path: "/goods",
    name: "goods",
    component: GoodsView,
  },
  {
    path: "/order",
    name: "order",
    component: OrderView,
  },
];


export default createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes,
});
